<template>
    <IndependencePannel :title="title" ref="independencePannel">
        <SubmitForm
            solt="content"
            ref="singleForm"
            v-bind="$attrs"
            :cancel-fun="cancelFun"
            style="margin-left: 20px"
            :style="{ width: width }"
        ></SubmitForm>
    </IndependencePannel>
</template>
<script>
import SubmitForm from './index.vue'
import IndependencePannel from '@/components/IndependencePannel/index.vue'
export default {
    components: { SubmitForm, IndependencePannel },
    inheritAttrs: false,
    props: {
        title: String,
        width: String
    },
    methods: {
        cancelFun() {
            this.$refs.singleForm.clear()
            this.$refs.independencePannel.goBack()
        }
    }
}
</script>
